package com.relax;


import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringApplicationDemo_xml {


    @Test
    public void testIoc() {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("");
        //查看容器中所有的bean
        String[] beanDefinitionNames = context.getBeanDefinitionNames();
        for (String name : beanDefinitionNames) {
            System.out.println(name);

        }
    }


}
